package com.lyz.moil.web.entity;

import com.lyz.moil.core.orm.hibernate.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Version;

/**
 * Created with IntelliJ IDEA.
 * User: xi
 * Date: 13-11-19
 * Time: 下午5:54
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class DeviceApp extends BaseEntity {

    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "assigned")
    private String uuid;

    @Version
    private int version;

    private String name;

    private String packageName;

    private String deviceId;

    private String creator;

    private String provider;

    private String appVersion;

    private Long appSize; // 应用大小

    private Long appCreate; // 应用安装时间

    private Long appUpdate;// 应用更新时间

    private Long size;

    @Column(length = 2048)
    private String icon;

    private String description;

    private Long uploadFlow;

    private Long downloadFlow;


    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public Long getAppSize() {
        return appSize;
    }

    public void setAppSize(Long appSize) {
        this.appSize = appSize;
    }

    public Long getAppCreate() {
        return appCreate;
    }

    public void setAppCreate(Long appCreate) {
        this.appCreate = appCreate;
    }

    public Long getAppUpdate() {
        return appUpdate;
    }

    public void setAppUpdate(Long appUpdate) {
        this.appUpdate = appUpdate;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getUploadFlow() {
        return uploadFlow;
    }

    public void setUploadFlow(Long uploadFlow) {
        this.uploadFlow = uploadFlow;
    }

    public Long getDownloadFlow() {
        return downloadFlow;
    }

    public void setDownloadFlow(Long downloadFlow) {
        this.downloadFlow = downloadFlow;
    }
}
